package smartlifev30.com.sdk.bean.request;

import smartlifev30.com.sdk.net.baiwei.protocol.Body;

import java.util.List;


/**
 * Created by tys on 2018/8/13.
 */

public class AddSceneRequest extends Body{

    private Scene scene;

    public Scene getScene() {
        return scene;
    }

    public void setScene(Scene scene) {
        this.scene = scene;
    }

    public class Scene{
        private String name;
        private int room_id;
        private long delay;
        private List<Instructs> instruct_list;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getRoom_id() {
            return room_id;
        }

        public void setRoom_id(int room_id) {
            this.room_id = room_id;
        }

        public long getDelay() {
            return delay;
        }

        public void setDelay(long delay) {
            this.delay = delay;
        }

        public List<Instructs> getInstruct_list() {
            return instruct_list;
        }

        public void setInstruct_list(List<Instructs> instruct_list) {
            this.instruct_list = instruct_list;
        }
    }

    public class Instructs {

        private String device_id;

        /**
         *1: 场景, 0: 普通设备
         */
        private int type;

        private long delay;

        public class Operation{

            private String state;

            private String color;

            private String mode;

            /**
             * 当为红外或数据透传类设备时
             */
            private String cmd;


            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public String getMode() {
                return mode;
            }

            public void setMode(String mode) {
                this.mode = mode;
            }

            public String getCmd() {
                return cmd;
            }

            public void setCmd(String cmd) {
                this.cmd = cmd;
            }
        }

        public String getDevice_id() {
            return device_id;
        }

        public void setDevice_id(String device_id) {
            this.device_id = device_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public long getDelay() {
            return delay;
        }

        public void setDelay(long delay) {
            this.delay = delay;
        }
    }
}
